package com.guoxue.service;

import java.io.Serializable;
import java.util.List;

import com.guoxue.domain.UserVo;

public interface IUserService {

	public void saveUser(UserVo user);

	public UserVo getUserById(String identityId);

	public UserVo getUser(String account);

	public UserVo getUser(String account, int type);

	public UserVo getUserByTel(String account);

	public List<UserVo> getUserList();

	public UserVo getUserByNickname(String nickName);

	public int updateUserNickName(String nickName, String account);

	public void updateAccountStatus(int id, int status);

	public UserVo getUserByKey(int id);

	public UserVo getUserSimpleInfo(final int uid);

	public Serializable saveReturnKey(UserVo entiy);

	/**
	 * 通过新浪账号查找
	 * 
	 * @param userId
	 * @return
	 */
	public UserVo getUserBySina(String userId);

	/**
	 * 通过QQ账号查找
	 * 
	 * @param userid
	 * @return
	 */
	public UserVo getUserByQq(String userid);

	/**
	 * 通过昵称、电话、国学吧号查找
	 * 
	 * @param account
	 * @return
	 */
	public List<UserVo> getByAccount(String account);

	/**
	 * 模糊按好友姓名查询
	 * 
	 * @param uid
	 * @param name
	 * @return
	 */
	public List<UserVo> getByName(int uid, int sysflag, String name);

	/**
	 * 通过昵称模糊查询
	 * 
	 * @param param
	 * @return
	 */
	public List<UserVo> getUserLikeNickname(String param);

	/**
	 * 通过uid模糊查询粉丝
	 * 
	 * @param uid
	 * @param name
	 * @return
	 */
	public List<UserVo> geFensByUid(int uid, String name);

}
